How to keep line breaks in SQL Server using ASP.NET and C#

99

How to keep line breaks in SQL Server using ASP.NET and C#? -

var outputHtml = textFromDb.Replace( "\r\n", "<br />" ).Replace( "\n", "<br />" );

Comments

Submit
0 Comments